package day08_stream_file_charset.com.itheima.d2_file;

import java.io.File;

public class FileDemo4 {
    public static void main(String[] args) {
        File f = new File("D:/dlei.jpg");
        String[] names = f.list();
        for (String name : names) {
            System.out.println(name);
        }
        File[] files = f.listFiles();
        for (File file : files) {
            System.out.println(file);
        }
        System.out.println("你好");
    }
}
